package com.nfIt.service.Impl;

import com.nfIt.dao.BookDao;
import com.nfIt.service.Bookservice;

/**
 * ClossName:BookServiceImpl
 * Pakage:com.nfIt.service.Impl
 * Description
 *
 * @Author L
 * @Create 2024/4/22 19:17
 * @Version 2023.1.3
 */
public class BookServiceImpl implements Bookservice {

    //ioc案列需要，Di案列不需要了
    //private BookDao bookDao = new BookDaoImpl();
    private BookDao bookDao;
    @Override
    public void say() {
        System.out.println("Bookservice 实现");
        bookDao.say();
    }

    //Di案列需要 提供set方法
    public void setBookDao(BookDao bookDao) {
        this.bookDao = bookDao;
    }
}
